<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2023/4/29
  Time: 19:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>图书借阅</title>
  <link href="/css/style.css" rel="stylesheet" type="text/css" />
  <script language="JavaScript" src="/js/jquery.js"></script>

  <script type="text/javascript">
    $(function(){
      //导航切换
      $(".menuson li").click(function(){
        $(".menuson li.active").removeClass("active")
        $(this).addClass("active");
      });

      $('.title').click(function(){
        var $ul = $(this).next('ul');
        $('dd').find('ul').slideUp();
        if($ul.is(':visible')){
          $(this).next('ul').slideUp();
        }else{
          $(this).next('ul').slideDown();
        }
      });
    })
  </script>


</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>欢迎来到图书借阅系统</div>

<dl class="leftmenu">

  <dd>
    <div class="title">
      <span><img src="/images/leftico01.png" /></span>点击显示/隐藏下拉信息
    </div>
    <ul class="menuson">
      <li><cite></cite><a href="/userServlet" target="rightFrame">用户管理</a><i></i></li>
      <li class="active"><cite></cite><a href="/bookServlet?type=query" target="rightFrame">书籍管理</a><i></i></li>
      <li><cite></cite><a href="/departmentServlet?type=query" target="rightFrame">院系管理</a><i></i></li>
      <li><cite></cite><a href="/classServlet?type=query" target="rightFrame">班级管理</a><i></i></li>
      <li><cite></cite><a href="/studentServlet?type=query" target="rightFrame">学生管理</a><i></i></li>
      <c:if test="${sessionScope.loginUser.username != 'admin'}">
          <li><cite></cite><a href="/readerCardServlet?type=query" target="rightFrame">我的借书卡</a><i></i></li>
      </c:if>

      <c:if test="${sessionScope.loginUser.username == 'admin'}">
          <li><cite></cite><a href="/readerCardServlet?type=query" target="rightFrame">借书卡管理</a><i></i></li>
      </c:if>
    </ul>
  </dd>

</dl>

</body>
</html>